package jmu.cyxwcy.librarymanagement.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import jmu.cyxwcy.librarymanagement.pojo.Borrowing;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-06-25
 */
public interface BorrowingMapper extends MPJBaseMapper<Borrowing> {

    @Update("update library_management.borrowing set return_date=CURDATE() where borrowing_id=#{borrowingId}")
    void updateReturnDate(Integer borrowingId);
}
